<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--       
*     Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
*     Use is subject to license terms.
-->
<html>
<head>
	<title>Safely Deleting JavaFX Code</title>
<link href="nbdocs:/org/netbeans/modules/usersguide/ide.css"  rel="stylesheet" type="text/css">
</head>
<body>
<h2>Safely Deleting JavaFX Code</h2>
<p> <small><a href="#seealso">See Also</a></small> 


<p>Use the Safely Delete refactoring operation to initiate the IDE's check for references to a selected code element before you delete that code element. You can apply Safely Delete on classes, functions, and variables.
<p><b>To initiate a Safely Delete operation: </b></p>
<ol>
<li>Select a code element that you want to delete and choose Refactor > Safely Delete 
 from the main menu <br>
 To select the code element, you can either click the element's node in the Projects window or place a cursor in the element's name in the Source editor.</li>
<li>In the Safely Delete dialog box, click Refactor.</li>
<ul>
<li>If the code element is not referenced by other code, the Safely Delete dialog box is closed and the code element is deleted.</li>
<li>If the code element is referenced by other code, the Safely Delete dialog box displays a warning and  a Show Usages button. 
<!--See the following section on how to handle code deletions when the code element is referenced.
-->
</ul>
</ol>
<!--
<p><b>Handling Deletions When The Code Element is Referenced </b></p>
When  
the Safely Delete dialog box displays a warning beginning with <code>References to selected elements were found, you can </code>
<ol>
<li>Select a code element that you want to delete and choose Refactor > Safely Delete 
 from the main menu <br>
</li>
</ol>
-->
<dl>
<dt><a name="seealso">See Also</a></dt>
<dd><a href="refactor_quick_ref.html">Refactoring: Quick Reference </a></dd>
<dd><a href="undo_refactor_changes.html">Undoing Refactoring Changes </a></dd>
</dl>

<hr>
<p><font size=-2><a href="../credits.html">Legal Notices</a></font>
</p>
<table cellpadding="50" border="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

</body>
</html>
